<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:63:"/www/wwwroot/pg.kuqi5.cn/application/admin/view/wxapi/info.html";i:1603967568;s:64:"/www/wwwroot/pg.kuqi5.cn/application/admin/view/public/head.html";i:1603093946;s:64:"/www/wwwroot/pg.kuqi5.cn/application/admin/view/public/foot.html";i:1603093946;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title><?php echo $title; ?> - 请勿泄露后台地址 - Copyright by 苹果CMS内容管理系统</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css?v=1024">
    <link rel="stylesheet" href="/static/css/admin_style.css?v=1024">
    <script type="text/javascript" src="/static/js/jquery.js?v=1024"></script>
    <script type="text/javascript" src="/static/layui/layui.js?v=1024"></script>
    <script>
        var ROOT_PATH="",ADMIN_PATH="<?php echo $_SERVER['SCRIPT_NAME']; ?>", MAC_VERSION='v10';
    </script>
</head>
<body>

<div class="page-container p10">
    <div class="showpic" style="display:none;"><img class="showpic_img" width="200" height="160"></div>
	<form class="layui-form layui-form-pane" method="post" action="">
		<div class="layui-tab" lay-filter="tb1">
			<ul class="layui-tab-title">
				<li class="layui-this" lay-id="configseo_1">小程序设置</li>
				<li lay-id="configseo_2">场景设置</li>
				<li lay-id="configseo_3">首页设置</li>
				<li lay-id="configseo_4">详情设置</li>
				<li lay-id="configseo_6">分类设置</li>
				<li lay-id="configseo_7">专题设置</li>
				<li lay-id="configseo_8">播放设置</li>
				<li lay-id="configseo_9">我的设置</li>
				<li lay-id="configseo_10">其他页面</li>
			</ul>
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show">
					<div class="layui-form-item">
						<label class="layui-form-label">平台：</label>
						<div class="layui-input-inline w200">
							<input type="text" class="layui-input" value="微信" name="app" readonly unselectable="on">
							<input name="info" type="hidden" value="info">
						</div>
						<label class="layui-form-label">管理员：</label>
						<div class="layui-input-inline w300">
							<input type="text" class="layui-input" value="<?php echo $info['admin']; ?>" placeholder="唯一标识英文" id="admin" name="admin" <?php if($info['admin'] != ''): ?> readonly="readonly"<?php endif; ?>>
						</div>
						<label class="layui-form-label">APP名称：</label>
						<div class="layui-input-inline w200">
							<input type="text" class="layui-input" value="<?php echo $info['des']; ?>" placeholder="APP名称" name="des">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">APP标识：</label>
						<div class="layui-input-inline w500">
							<input type="text" class="layui-input" value="<?php echo $info['name']; ?>" placeholder="唯一标识英文" id="name" name="name" <?php if($info['name'] != ''): ?> readonly="readonly"<?php endif; ?>>
						</div>
						
					    <label class="layui-form-label">授权码</label>
					    <div class="layui-input-inline w500">
					        <input type="text" class="layui-input" value="<?php echo $info['WxKey']; ?>" placeholder="唯一标识英文" id="WxKey" name="WxKey" <?php if($info['WxKey'] != ''): ?> readonly="readonly"<?php endif; ?>>
					    </div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">小程序APPID</label>
						<label class="layui-form-label">APPID:</label>
						<div class="layui-input-inline w280">
							<input type="text" name="site[appid]" placeholder="" value="<?php echo $info['site']['appid']; ?>" class="layui-input">
						</div>
						<label class="layui-form-label">AppSecret:</label>
						<div class="layui-input-inline w280">
							<input type="text" name="site[AppSecret]" placeholder="" value="<?php echo $info['site']['AppSecret']; ?>" class="layui-input">
						</div>
						<div class="layui-form-mid layui-word-aux">
							必填,获取用户信息,放到后端比较安全
						</div>
					</div>
			<div class="layui-form-item">
				<label class="layui-form-label">数据加密：</label>
				<div class="layui-input-inline">
					<input type="radio" name="encrypt[radio]" value="0" title="关闭" <?php if($info['encrypt']['radio'] != 1): ?>checked <?php endif; ?>>
					<input type="radio" name="encrypt[radio]" value="1" title="开启" <?php if($info['encrypt']['radio'] == 1): ?>checked <?php endif; ?>>
				</div>
				<label class="layui-form-label">iv:</label>
				<div class="layui-input-inline w280">
					<input type="text" name="encrypt[iv]" placeholder="必须为16位字符串" value="<?php echo $info['encrypt']['iv']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">key:</label>
				<div class="layui-input-inline w280">
					<input type="text" name="encrypt[key]" placeholder="必须为16位字符串" value="<?php echo $info['encrypt']['key']; ?>" class="layui-input">
				</div>
				<div class="layui-form-mid layui-word-aux">
                       说明:与APP端加密密码相对应,iv/key必须为16位字符串
				</div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">订阅消息：</label>
				<div class="layui-input-inline w80">
					<select style="width:80px;" name="site[message][radio]">
						<option value="0" <?php if($info['site']['message']['radio'] == 0): ?>selected <?php endif; ?>>关闭</option>
						<option value="1" <?php if($info['site']['message']['radio'] == 1): ?>selected <?php endif; ?>>开启</option>
					</select>
				</div>
				<label class="layui-form-label">消息模版：</label>
				<div class="layui-input-inline w500">
					<input type="text" name="site[message][tmpIds]" placeholder="" value="<?php echo $info['site']['message']['tmpIds']; ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">分享二维码：</label>
				<div class="layui-input-inline w500 upload">
					<input type="text" name="site[sharepic]" placeholder="图片地址或路径" value="<?php echo $info['site']['sharepic']; ?>" id="sharepic" name="sharepic" class="layui-input upload-input">
				</div>
				<div class="layui-input-inline ">
                    <button type="button" class="layui-btn layui-upload" lay-data="{data:{thumb:0,thumb_class:'site[sharepic]'}}" id="upload1">上传图片</button>
                </div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">客服：</label>
				<div class="layui-input-inline w120">
					<select style="width:80px;" name="site[kefu][type]">
						<option value="0" <?php if($info['site']['kefu']['type'] == 0): ?>selected <?php endif; ?>>网页</option>
						<option value="1" <?php if($info['site']['kefu']['type'] == 1): ?>selected <?php endif; ?>>图片</option>
					</select>
				</div>
				<label class="layui-form-label">地址</label>
				<div class="layui-input-inline w400">
					<input type="text" name="site[kefu][url]" placeholder="" value="<?php echo $info['site']['kefu']['url']; ?>" class="layui-input upload-input">
				</div>
				<div class="layui-input-inline ">
                    <button type="button" class="layui-btn layui-upload" lay-data="{data:{thumb:0,thumb_class:'site[kefu][url]'}}" id="upload1">上传图片</button>
                </div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">分享类型：</label>
				<div class="layui-input-inline w120">
					<select style="width:80px;" name="site[share][type]">
						<option value="0" <?php if($info['site']['share']['type'] == 0): ?>selected <?php endif; ?>>固定分享</option>
						<option value="1" <?php if($info['site']['share']['type'] == 1): ?>selected <?php endif; ?>>动态生成</option>
					</select>
				</div>
				<label class="layui-form-label">动态分享文字</label>
				<div class="layui-input-inline w280">
					<input type="text" name="site[share][wxText]" placeholder="" value="<?php echo $info['site']['share']['wxText']; ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">动态图片储存：</label>
				<div class="layui-input-inline w120">
					<select style="width:80px;" name="site[file][type]">
						<option value="0" <?php if($info['file']['type'] == 0): ?>selected <?php endif; ?>>本地存储</option>
						<option value="1" <?php if($info['file']['type'] == 1): ?>selected <?php endif; ?>>七牛云</option>
						<option value="3" <?php if($info['file']['type'] == 2): ?>selected <?php endif; ?>>图片外链</option>
					</select>
				</div>
				<label class="layui-form-label">七牛ak：</label>
				<div class="layui-input-inline w750">
					<input type="text" name="site[file][qiniu][ak]" placeholder="" value="<?php echo $info['site']['file']['qiniu']['ak']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">七牛sk：</label>
				<div class="layui-input-inline w750">
					<input type="text" name="site[file][qiniu][sk]" placeholder="" value="<?php echo $info['site']['file']['qiniu']['sk']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">七牛空间名：</label>
				<div class="layui-input-inline w750">
					<input type="text" name="site[file][qiniu][name]" placeholder="" value="<?php echo $info['site']['file']['qiniu']['name']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">七牛域名：</label>
				<div class="layui-input-inline w750">
					<input type="text" name="site[file][qiniu][host]" placeholder="" value="<?php echo $info['site']['file']['qiniu']['host']; ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">客户端检测：</label>
				<div class="layui-input-inline">
					<input type="radio" name="site[platform]" value="0" title="关闭" <?php if($info['site']['platform'] != 1): ?>checked <?php endif; ?>>
					<input type="radio" name="site[platform]" value="1" title="开启" <?php if($info['site']['platform'] == 1): ?>checked <?php endif; ?>>
				</div>
				<div class="layui-form-mid layui-word-aux">
					非手机端不显示播放按钮
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">IP控制：</label>
				<div class="layui-input-inline">
					<input type="radio" name="site[ip][radio]" value="0" title="关闭" <?php if($info['site']['ip']['radio'] != 1): ?>checked <?php endif; ?>>
					<input type="radio" name="site[ip][radio]" value="1" title="开启" <?php if($info['site']['ip']['radio'] == 1): ?>checked <?php endif; ?>>
				</div>
				<div class="layui-form-mid layui-word-aux">
					限制腾讯云IP
				</div>
				<label class="layui-form-label w100">物理地址:</label>
				<div class="layui-input-inline w100">
					<input type="text" name="site[ip][text]" placeholder="如:腾讯云" value="<?php echo $info['site']['ip']['text']; ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">登录次数：</label>
				<div class="layui-input-inline">
					<input type="radio" name="site[login][radio]" value="0" title="关闭" <?php if($info['site']['login']['radio'] != 1): ?>checked <?php endif; ?>>
					<input type="radio" name="site[login][radio]" value="1" title="开启" <?php if($info['site']['login']['radio'] == 1): ?>checked <?php endif; ?>>
				</div>
				<label class="layui-form-label">登录次数大于：</label>
				<div class="layui-input-inline w100">
					<input type="text" name="site[login][num]" placeholder="开启免审核" value="<?php echo $info['site']['login']['num']; ?>" class="layui-input">
				</div>
				<div class="layui-form-mid layui-word-aux">
					登录次数大于多少次,审核时可以开启观看功能
				</div>
			</div>
		</div>
		<!--场景设置-->
		<div class="layui-tab-item">
			<blockquote class="layui-elem-quote layui-text" style="margin:20px 0;border-left-color: #ff5722;">
				<p>
					1、审核时可以全关闭!
				</p>
				<p>
					2、选取为允许播放,或选择安全的场景值(为了防止被封选择安全的场景值,后期可以根据不同场景添加)
				</p>
			</blockquote>
			<div class="layui-form-item">
				<label class="layui-form-label">场景值：</label>
				<div class="layui-input-block role-list-form">
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1000" title="其他1000" <?php if(strpos($info['weeks'],'1000')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1001" title="发现栏入口1001" <?php if(strpos($info['weeks'],'1001')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1005" title="搜索入口1005" <?php if(strpos($info['weeks'],'1005')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1006" title="搜索入口1006" <?php if(strpos($info['weeks'],'1006')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1007" title="单聊入口1007" <?php if(strpos($info['weeks'],'1007')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1008" title="群聊入口1008" <?php if(strpos($info['weeks'],'1008')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1010" title="收藏夹1010" <?php if(strpos($info['weeks'],'1010')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1011" title="扫码进入1011" <?php if(strpos($info['weeks'],'1011')!==false): ?>checked<?php endif; ?>>
					<!--<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1012" title="识别二维码1012" <?php if(strpos($info['weeks'],'1012')!==false): ?>checked<?php endif; ?>>-->
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1013" title="相册二维码1013" <?php if(strpos($info['weeks'],'1013')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1014" title="模版消息1014" <?php if(strpos($info['weeks'],'1014')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1017" title="体验版入口1017" <?php if(strpos($info['weeks'],'1017')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1022" title="聊天顶部1022" <?php if(strpos($info['weeks'],'1022')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1023" title="安卓桌面1023" <?php if(strpos($info['weeks'],'1023')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1024" title="小程序profile1024" <?php if(strpos($info['weeks'],'1024')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1027" title="使用过的1027" <?php if(strpos($info['weeks'],'1027')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1035" title="公众号菜单1035" <?php if(strpos($info['weeks'],'1035')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1036" title="APP分享1036" <?php if(strpos($info['weeks'],'1036')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1037" title="小程序进入1037" <?php if(strpos($info['weeks'],'1037')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1038" title="小程序返回1038" <?php if(strpos($info['weeks'],'1038')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1042" title="添加好友搜索框1042" <?php if(strpos($info['weeks'],'1042')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1043" title="公众号消息1043" <?php if(strpos($info['weeks'],'1043')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1044" title="shareTicket消息1044(常用)" <?php if(strpos($info['weeks'],'1044')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1047" title="扫小程序码1047" <?php if(strpos($info['weeks'],'1047')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1048" title="识别小程序码1048" <?php if(strpos($info['weeks'],'1048')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1049" title="相册小程序码1049" <?php if(strpos($info['weeks'],'1049')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1053" title="搜一搜1053" <?php if(strpos($info['weeks'],'1053')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1054" title="顶部搜索框1054" <?php if(strpos($info['weeks'],'1054')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1058" title="公众号文章1058" <?php if(strpos($info['weeks'],'1058')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1073" title="客服消息列表下发1073(常用)" <?php if(strpos($info['weeks'],'1073')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1074" title="公众号会话下发1074(常用)" <?php if(strpos($info['weeks'],'1074')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1089" title="主界面下拉1089(常用)" <?php if(strpos($info['weeks'],'1089')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1090" title="长按小程序右上角菜单1090" <?php if(strpos($info['weeks'],'1090')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1091" title="公众号文章1091" <?php if(strpos($info['weeks'],'1091')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1092" title="城市服务入口1092" <?php if(strpos($info['weeks'],'1092')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1096" title="聊天记录1096(常用)" <?php if(strpos($info['weeks'],'1096')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1106" title="搜索常用小程序1106" <?php if(strpos($info['weeks'],'1106')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1107" title="订阅消息1107" <?php if(strpos($info['weeks'],'1107')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1113" title="安卓手机负一屏1113" <?php if(strpos($info['weeks'],'1113')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1114" title="安卓手机侧边栏1114" <?php if(strpos($info['weeks'],'1114')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1131" title="悬浮打开1131" <?php if(strpos($info['weeks'],'1131')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1155" title="朋友圈单页1155(常用)" <?php if(strpos($info['weeks'],'1155')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1154" title="朋友圈单页1154(常用)" <?php if(strpos($info['weeks'],'1154')!==false): ?>checked<?php endif; ?>>
					<input type="checkbox" name="weeks[]" class="layui-checkbox" lay-skin="primary" value="1169" title="生活服务入口1169(常用)" <?php if(strpos($info['weeks'],'1169')!==false): ?>checked<?php endif; ?>>
				</div>
				<div class="layui-input-block">
		    	   <button type="button" class="layui-btn layui-btn-normal formCheckAll" lay-filter="formCheckAll" >全选</button>
			       <button type="button" class="layui-btn layui-btn-normal formCheckOther" lay-filter="formCheckOther">反选</button>
	         	</div>
			</div>
		</div>
		<!--首页设置-->
		<div class="layui-tab-item">
			<div class="layui-form-item">
				<label class="layui-form-label">首页微信广告id</label>
				<label class="layui-form-label">插屏广告id:</label>
				<div class="layui-input-inline w550">
					<input type="text" name="index[wxAdId][cpId]" placeholder="" value="<?php echo $info['index']['wxAdId']['cpId']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">原生广告id:</label>
				<div class="layui-input-inline w550">
					<input type="text" name="index[wxAdId][ysId]" placeholder="" value="<?php echo $info['index']['wxAdId']['ysId']; ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">首页弹窗：</label>
				<div class="layui-input-inline w80">
					<select style="width:80px;" name="index[tanchuang][radio]">
						<option value="0" <?php if($info['index']['tanchuang']['radio'] == 0): ?>selected <?php endif; ?>>关闭</option>
						<option value="1" <?php if($info['index']['tanchuang']['radio'] == 1): ?>selected <?php endif; ?>>开启</option>
					</select>
				</div>
				<div class="layui-input-inline w100">
					<select style="width:100px;" name="index[tanchuang][type]">
						<option value="0" <?php if($info['index']['tanchuang']['type'] == 0): ?>selected <?php endif; ?>>网页</option>
						<option value="1" <?php if($info['index']['tanchuang']['type'] == 1): ?>selected <?php endif; ?>>跳转</option>
						<option value="2" <?php if($info['index']['tanchuang']['type'] == 2): ?>selected <?php endif; ?>>图片</option>
						<option value="2" <?php if($info['index']['tanchuang']['type'] == 3): ?>selected <?php endif; ?>>富文本</option>
					</select>
				</div>
				<label class="layui-form-label">图片:</label>
				<div class="layui-input-inline w280">
					<input type="text" name="index[tanchuang][image]" placeholder="" value="<?php echo $info['index']['tanchuang']['image']; ?>" class="layui-input upload-input">
				</div>
				<div class="layui-input-inline ">
                    <button type="button" class="layui-btn layui-upload" lay-data="{data:{thumb:0,thumb_class:'index[tanchuang][image]'}}" id="upload1">上传图片</button>
                </div>
				<label class="layui-form-label">地址:</label>
				<div class="layui-input-inline w280">
					<input type="text" name="index[tanchuang][url]" placeholder="" value="<?php echo $info['index']['tanchuang']['url']; ?>" class="layui-input upload-input">
				</div>
				<div class="layui-input-inline ">
                    <button type="button" class="layui-btn layui-upload" lay-data="{data:{thumb:0,thumb_class:'index[tanchuang][url]'}}" id="upload1">上传图片</button>
                </div>
				<div class="layui-form-mid layui-word-aux">
					说明:关闭后24小时弹窗1次,图片为空不弹窗,复制为点击图片,复制内容,跳转为跳转到小程序,小程序无法跳转到浏览器
				</div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">首页分享</label>
				<label class="layui-form-label">标题:</label>
				<div class="layui-input-inline w300">
					<input type="text" name="index[share][title]" placeholder="" value="<?php echo $info['index']['share']['title']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">图片:</label>
				<div class="layui-input-inline w300">
					<input type="text" name="index[share][image]" placeholder="" value="<?php echo $info['index']['share']['image']; ?>" class="layui-input upload-input">
				</div>
				<div class="layui-input-inline ">
                    <button type="button" class="layui-btn layui-upload" lay-data="{data:{thumb:0,thumb_class:'index[share][image]'}}" id="upload1">上传图片</button>
                </div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">首页公告：</label>
				<div class="layui-input-inline w700">
					<input type="text" name="index[notice]" placeholder="" value="<?php echo $info['index']['notice']; ?>" class="layui-input">
				</div>
			</div>
			<div>
				<label class="layui-form-label">首页分类ID：</label>
				<div class="layui-input-block">
					<a class="layui-btn layui-btn-sm layui-btn-normal" href="javascript:;" onclick="add_indexType()">添加首页分类</a>
				</div>
			</div>
			<script>
                var sy_type_len = <?php echo count($info['index']['sy_type']); ?>;
                var vodPlayer_len = <?php echo count($info['play']['vodPlayer']['id']); ?>;
            </script>
			<div class="contents" id="indexType" >
				<?php if(is_array($info['index']['sy_type']) || $info['index']['sy_type'] instanceof \think\Collection || $info['index']['sy_type'] instanceof \think\Paginator): $i = 0; $__LIST__ = $info['index']['sy_type'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
				<div class="layui-form-item" data-i="<?php echo $key; ?>" >
					<label class="layui-form-label"><?php echo $key; ?>分类ID：</label>
					<div class="layui-input-inline">
						<input type="text" name="index[sy_type][type_id][]" placeholder="请输入" value="<?php echo $vo['type_id']; ?>" class="layui-input">
					</div>
					<div class="layui-form-mid">分类名称：</div>
					<div class="layui-input-inline">
						<input type="text" name="index[sy_type][type_name][]" placeholder="请输入" value="<?php echo $vo['type_name']; ?>" class="layui-input">
					</div>
					<div class="layui-input-inline w400 p10">
					    <a href="javascript:void(0)" class="j-editor-remove">删除</a>&nbsp;
				    	&nbsp;<a href="javascript:void(0)" class="j-editor-up">上移</a>&nbsp;
				    	<a href="javascript:void(0)" class="j-editor-down">下移</a>&nbsp;
			        </div>
				</div>
				 <?php endforeach; endif; else: echo "" ;endif; ?>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">首页更多：</label>
				<div class="layui-input-inline w200">
					<select style="width:200px;" name="index[more]">
						<option value="0" <?php if($info['index']['more'] == 0): ?>selected <?php endif; ?>>跳转分类</option>
						<option value="1" <?php if($info['index']['more'] == 1): ?>selected <?php endif; ?>>推荐全部</option>
					</select>
				</div>
			</div>
		</div>
		<div class="layui-tab-item">
			<div class="layui-form-item">
				<label class="layui-form-label">跳转播放：</label>
				<div class="layui-input-inline">
					<input type="radio" name="detail[play][radio]" value="0" title="关闭" <?php if($info['detail']['play']['radio'] != 1): ?>checked <?php endif; ?>>
					<input type="radio" name="detail[play][radio]" value="1" title="开启" <?php if($info['detail']['play']['radio'] == 1): ?>checked <?php endif; ?>>
				</div>
				<label class="layui-form-label">跳转APPid:</label>
				<div class="layui-input-inline w480">
					<input type="text" name="detail[play][APPID]" placeholder="" value="<?php echo $info['detail']['play']['APPID']; ?>" class="layui-input">
				</div>

			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">豆瓣总开关：</label>
				<div class="layui-input-inline">
					<input name="detail[douban]" type="radio" id="rad-1" value="0" title="关闭" <?php if($info['detail']['douban'] != 1): ?>checked <?php endif; ?>>
					<input name="detail[douban]" type="radio" id="rad-2" value="1" title="开启" <?php if($info['detail']['douban'] == 1): ?>checked <?php endif; ?>>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">豆瓣更新：</label>
				<div class="layui-input-inline">
					<input name="detail[dbUpdate]" type="radio" id="rad-1" value="0" title="关闭" <?php if($info['detail']['dbUpdate'] != 1): ?>checked <?php endif; ?>>
					<input name="detail[dbUpdate]" type="radio" id="rad-2" value="1" title="开启" <?php if($info['detail']['dbUpdate'] == 1): ?>checked <?php endif; ?>>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">豆瓣剧照：</label>
				<div class="layui-input-inline">
					<input name="detail[dbStills]" type="radio" id="rad-1" value="0" title="关闭" <?php if($info['detail']['dbStills'] != 1): ?>checked <?php endif; ?>>
					<input name="detail[dbStills]" type="radio" id="rad-2" value="1" title="开启" <?php if($info['detail']['dbStills'] == 1): ?>checked <?php endif; ?>>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">详情广告：</label>
				<div class="layui-input-inline w80">
					<select style="width:80px;" name="detail[gg][radio]">
						<option value="0" <?php if($info['detail']['gg']['radio'] == 0): ?>selected <?php endif; ?>>关闭</option>
						<option value="1" <?php if($info['detail']['gg']['radio'] == 1): ?>selected <?php endif; ?>>开启</option>
					</select>
				</div>
				<div class="layui-input-inline w100">
					<select style="width:100px;" name="detail[gg][type]">
						<option value="0" <?php if($info['detail']['gg']['type'] == 0): ?>selected <?php endif; ?>>网页</option>
						<option value="1" <?php if($info['detail']['gg']['type'] == 1): ?>selected <?php endif; ?>>跳转</option>
						<option value="2" <?php if($info['detail']['gg']['type'] == 2): ?>selected <?php endif; ?>>图片</option>
						<option value="3" <?php if($info['detail']['gg']['type'] == 3): ?>selected <?php endif; ?>>富文本</option>
					</select>
				</div>
				<label class="layui-form-label">图片:</label>
				<div class="layui-input-inline w280">
					<input type="text" name="detail[gg][image]" placeholder="" value="<?php echo $info['detail']['gg']['image']; ?>"class="layui-input upload-input">
				</div>
				<div class="layui-input-inline ">
                    <button type="button" class="layui-btn layui-upload" lay-data="{data:{thumb:0,thumb_class:'detail[gg][image]'}}" id="upload1">上传图片</button>
                </div>
				<label class="layui-form-label">地址:</label>
				<div class="layui-input-inline w280">
					<input type="text" name="detail[gg][url]" placeholder="" value="<?php echo $info['detail']['gg']['url']; ?>" class="layui-input upload-input">
				</div>
				<div class="layui-input-inline ">
                    <button type="button" class="layui-btn layui-upload" lay-data="{data:{thumb:0,thumb_class:'detail[gg][url]'}}" id="upload1">上传图片</button>
                </div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">微信广告id</label>
				<label class="layui-form-label">插屏广告id:</label>
				<div class="layui-input-inline w550">
					<input type="text" name="detail[wxAdId][cpId]" placeholder="" value="<?php echo $info['detail']['wxAdId']['cpId']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">原生id:</label>
				<div class="layui-input-inline w550">
					<input type="text" name="detail[wxAdId][ysId]" placeholder="" value="<?php echo $info['detail']['wxAdId']['ysId']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">激励视频id:</label>
				<div class="layui-input-inline w550">
					<input type="text" name="detail[wxAdId][jlspId]" placeholder="" value="<?php echo $info['detail']['wxAdId']['jlspId']; ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">广告提示文字：</label>
				<label class="layui-form-label">加载文字：</label>
				<div class="layui-input-inline w350">
					<input type="text" name="detail[adMsg][start]" placeholder="" value="<?php echo $info['detail']['adMsg']['start']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">关闭文字：</label>
				<div class="layui-input-inline w350">
					<input type="text" name="detail[adMsg][close]" placeholder="" value="<?php echo $info['detail']['adMsg']['close']; ?>" class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-tab-item">
			<div class="layui-form-item">
				<label class="layui-form-label">原生广告id:</label>
				<div class="layui-input-inline w300">
					<input type="text" name="feilei[wxAdId][ysId]" placeholder="" value="<?php echo $info['feilei']['wxAdId']['ysId']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">插屏广告id:</label>
				<div class="layui-input-inline w300">
					<input type="text" name="feilei[wxAdId][cpId]" placeholder="" value="<?php echo $info['feilei']['wxAdId']['cpId']; ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">分类列表类型：</label>
				<div class="layui-input-block">
					<textarea name="feilei[type_class]" class="layui-textarea" placeholder="JSON格式"><?php echo $info['feilei']['type_class']; ?></textarea>
				</div>
			</div>
		</div>
		<div class="layui-tab-item">
			<div class="layui-form-item">
				<label class="layui-form-label">原生广告id:</label>
				<div class="layui-input-inline w300">
					<input type="text" name="topic[wxAdId][ysId]" placeholder="" value="<?php echo $info['topic']['wxAdId']['ysId']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">插屏广告id:</label>
				<div class="layui-input-inline w300">
					<input type="text" name="topic[wxAdId][cpId]" placeholder="" value="<?php echo $info['topic']['wxAdId']['cpId']; ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">标签列表：</label>
				<div class="layui-input-block">
					<textarea name="topic[tags]" class="layui-textarea" placeholder="JSON格式,不填则不显示"><?php echo $info['topic']['tags']; ?></textarea>
				</div>
			</div>
		</div>
		<div class="layui-tab-item">
			<div class="layui-form-item">
				<label class="layui-form-label">激励广告：</label>
				<div class="layui-input-inline w120">
					<select style="width:120px;" name="play[isPoints]">
						<option value="0" <?php if($info['play']['isPoints'] == 0): ?>selected <?php endif; ?>>关闭</option>
						<option value="1" <?php if($info['play']['isPoints'] == 1): ?>selected <?php endif; ?>>开启</option>
					</select>
				</div>
				<label class="layui-form-label">是否强制：</label>
				<div class="layui-input-inline w120">
					<select style="width:120px;" name="play[enforce]">
						<option value="0" <?php if($info['play']['enforce'] == 0): ?>selected <?php endif; ?>>关闭</option>
						<option value="1" <?php if($info['play']['enforce'] == 1): ?>selected <?php endif; ?>>强制</option>
					</select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">多少秒触发:</label>
				<div class="layui-input-inline w280">
					<input type="text" name="play[second]" placeholder="播放多少秒触发广告" value="<?php echo $info['play']['second']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">每天几次:</label>
				<div class="layui-input-inline w280">
                    <input type="text" name="play[num]" placeholder="每天播放几次" value="<?php echo $info['play']['num']; ?>" class="layui-input">
                </div>
                <label class="layui-form-label">每次间隔:</label>
				<div class="layui-input-inline w280">
                    <input type="number" name="play[interval]" placeholder="每次间隔时长(小时)" value="<?php echo $info['play']['interval']/3600; ?>" class="layui-input">
                </div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">广告提示文字：</label>
				<label class="layui-form-label">加载文字：</label>
				<div class="layui-input-inline w350">
					<input type="text" name="play[adMsg][start]" placeholder="" value="<?php echo $info['play']['adMsg']['start']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">关闭文字：</label>
				<div class="layui-input-inline w350">
					<input type="text" name="play[adMsg][close]" placeholder="" value="<?php echo $info['play']['adMsg']['close']; ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">播放页图片广告：</label>
				<div class="layui-input-inline w80">
					<select style="width:80px;" name="play[gg][radio]">
						<option value="0" <?php if($info['play']['gg']['radio'] == 0): ?>selected <?php endif; ?>>关闭</option>
						<option value="1" <?php if($info['play']['gg']['radio'] == 1): ?>selected <?php endif; ?>>开启</option>
					</select>
				</div>
				<div class="layui-input-inline w100">
					<select style="width:100px;" name="play[gg][type]">
						<option value="0" <?php if($info['play']['gg']['type'] == 0): ?>selected <?php endif; ?>>网页</option>
						<option value="1" <?php if($info['play']['gg']['type'] == 1): ?>selected <?php endif; ?>>跳转</option>
						<option value="2" <?php if($info['play']['gg']['type'] == 2): ?>selected <?php endif; ?>>图片</option>
						<option value="3" <?php if($info['play']['gg']['type'] == 3): ?>selected <?php endif; ?>>富文本</option>
					</select>
				</div>
				<label class="layui-form-label">图片:</label>
				<div class="layui-input-inline w280">
					<input type="text" name="play[gg][image]" placeholder="" value="<?php echo $info['play']['gg']['image']; ?>" class="layui-input upload-input">
				</div>
				<div class="layui-input-inline ">
                    <button type="button" class="layui-btn layui-upload" lay-data="{data:{thumb:0,thumb_class:'play[gg][url]'}}" id="upload1">上传图片</button>
                </div>
				<label class="layui-form-label">地址:</label>
				<div class="layui-input-inline w480">
					<input type="text" name="play[gg][url]" placeholder="" value="<?php echo $info['play']['gg']['url']; ?>" class="layui-input upload-input">
				</div>
				<div class="layui-input-inline ">
                    <button type="button" class="layui-btn layui-upload" lay-data="{data:{thumb:0,thumb_class:'play[gg][url]'}}" id="upload1">上传图片</button>
                </div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">激励视频id:</label>
				<div class="layui-input-inline w550">
					<input type="text" name="play[wxAdId][jlspId]" placeholder="" value="<?php echo $info['play']['wxAdId']['jlspId']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">插屏广告id:</label>
				<div class="layui-input-inline w550">
					<input type="text" name="play[wxAdId][cpId]" placeholder="" value="<?php echo $info['play']['wxAdId']['cpId']; ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">视频前贴id:</label>
				<div class="layui-input-inline w550">
					<input type="text" name="play[wxAdId][spqtId]" placeholder="" value="<?php echo $info['play']['wxAdId']['spqtId']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">原生id:</label>
				<div class="layui-input-inline w550">
					<input type="text" name="play[wxAdId][ysId]" placeholder="" value="<?php echo $info['play']['wxAdId']['ysId']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">原生格子广告id:</label>
				<div class="layui-input-inline w550">
					<input type="text" name="play[wxAdId][ysgzId]" placeholder="" value="<?php echo $info['play']['wxAdId']['ysgzId']; ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item" >
				<label class="layui-form-label">播放组顺序：</label>
				<div class="layui-input-block">
					<a class="layui-btn layui-btn-sm layui-btn-normal" href="javascript:;" onclick="add_vodPlayer()">添加播放组</a>
				</div>
				<div class="layui-form-mid layui-word-aux">
					可以把播放速度快的资源,排序到前必需包含全部播放源,否则出现排序不完整
				</div>
                
			</div>

			<div class="contents" id="vodPlayer">
			    <?php if(is_array($info['play']['vodPlayer']['id']) || $info['play']['vodPlayer']['id'] instanceof \think\Collection || $info['play']['vodPlayer']['id'] instanceof \think\Paginator): $i = 0; $__LIST__ = $info['play']['vodPlayer']['id'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
				<div class="layui-form-item">
					<label class="layui-form-label">内容：</label>
					<div class="layui-input-inline">
						<input type="text" name="play[vodPlayer][id][]" placeholder="请输入内容" value="<?php echo $vo; ?>" class="layui-input">
					</div>
					<div class="layui-form-mid">
						颜色：
					</div>
					<div class="layui-input-inline">
						<input type="text" name="play[vodPlayer][title][]" placeholder="请输入文字颜色" value="<?php echo $info['play']['vodPlayer']['title'][$i-1]; ?>" class="layui-input">
					</div>
					<div class="layui-input-inline w400 p10">
					    <a href="javascript:void(0)" class="j-editor-remove">删除</a>&nbsp;
				    	<a href="javascript:void(0)" class="j-editor-up">上移</a>&nbsp;
				    	<a href="javascript:void(0)" class="j-editor-down">下移</a>&nbsp;
			        </div>
					<hr>
				</div>
                <?php endforeach; endif; else: echo "" ;endif; ?> 
			</div>
			<div class="layui-form-item" id="danmuList">
				<label class="layui-form-label">播放页公告：</label>
				<div class="layui-input-block">
					<a class="layui-btn layui-btn-sm layui-btn-normal" href="javascript:;" onclick="add_danmuList()">添加一条弹幕</a>
				</div>
                            <?php if(is_array($info['play']['danmuList']) || $info['play']['danmuList'] instanceof \think\Collection || $info['play']['danmuList'] instanceof \think\Paginator): $i = 0; $__LIST__ = $info['play']['danmuList'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
				<div class="layui-form-item mt10">
					<label class="layui-form-label">内容：</label>
					<div class="layui-input-inline">
						<input type="text" name="play[danmuList][text][]" placeholder="请输入内容" value="<?php echo $vo['text']; ?>" class="layui-input">
					</div>
					<div class="layui-form-mid">
						颜色：
					</div>
					<div class="layui-input-inline">
						<input type="color" name="play[danmuList][color][]" placeholder="请输入文字颜色" value="<?php echo $vo['color']; ?>" class="layui-input color">
					</div>
					<div class="layui-form-mid">
						时间：
					</div>
					<div class="layui-input-inline">
						<input type="text" name="play[danmuList][time][]" placeholder="请输入时间" value="<?php echo $vo['time']; ?>" class="layui-input">
					</div>
					<a class="layui-btn layui-btn-xs" href="javascript:;" onclick="del_more(this)">删除</a>
				</div>
				<hr>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
			</div>
		</div>
		<div class="layui-tab-item">
			    <div class="layui-form-item">
				<label class="layui-form-label">我的图片广告：</label>
				<div class="layui-input-inline w80">
					<select style="width:80px;" name="wode[gg][radio]">
						<option value="0" <?php if($info['wode']['gg']['radio'] == 0): ?>selected <?php endif; ?>>关闭</option>
						<option value="1" <?php if($info['wode']['gg']['radio'] == 1): ?>selected <?php endif; ?>>开启</option>
					</select>
				</div>
				<div class="layui-input-inline w100">
					<select style="width:100px;" name="wode[gg][type]">
						<option value="0" <?php if($info['wode']['gg']['type'] == 0): ?>selected <?php endif; ?>>网页</option>
						<option value="1" <?php if($info['wode']['gg']['type'] == 1): ?>selected <?php endif; ?>>跳转</option>
						<option value="2" <?php if($info['wode']['gg']['type'] == 2): ?>selected <?php endif; ?>>图片</option>
						<option value="3" <?php if($info['wode']['gg']['type'] == 3): ?>selected <?php endif; ?>>富文本</option>
					</select>
				</div>
				<label class="layui-form-label">图片:</label>
				<div class="layui-input-inline w280">
					<input type="text" name="wode[gg][image]" placeholder="" value="<?php echo $info['wode']['gg']['image']; ?>" class="layui-input upload-input">
				</div>
				<div class="layui-input-inline ">
                    <button type="button" class="layui-btn layui-upload" lay-data="{data:{thumb:0,thumb_class:'wode[gg][url]'}}" id="upload1">上传图片</button>
                </div>
				<label class="layui-form-label">地址:</label>
				<div class="layui-input-inline w280">
					<input type="text" name="wode[gg][url]" placeholder="" value="<?php echo $info['wode']['gg']['url']; ?>" class="layui-input upload-input">
				</div>
				<div class="layui-input-inline ">
                    <button type="button" class="layui-btn layui-upload" lay-data="{data:{thumb:0,thumb_class:'wode[gg][url]'}}" id="upload1">上传图片</button>
                </div>
			
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">免责声明:</label>
					<div class="layui-input-inline w700">
						<input type="text" name="wode[statement]" placeholder="" value="<?php echo $info['wode']['statement']; ?>" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">原生广告id:</label>
					<div class="layui-input-inline w300">
						<input type="text" name="wode[wxAdId][ysId]" placeholder="" value="<?php echo $info['wode']['wxAdId']['ysId']; ?>" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">显示更多：</label>
					<div class="layui-input-inline">
						<input type="radio" name="wode[more][radio]" value="0" title="关闭" <?php if($info['wode']['more']['radio'] != 1): ?>checked <?php endif; ?>>
						<input type="radio" name="wode[more][radio]" value="1" title="开启" <?php if($info['wode']['more']['radio'] == 1): ?>checked <?php endif; ?>>
					</div>
				</div>
				<div class="layui-form-item" id="more">
					<label class="layui-form-label">更多小程序：</label>
					<div class="layui-input-block">
						<a class="layui-btn layui-btn-sm layui-btn-normal" href="javascript:;" onclick="add_more()">添加更多小程序</a>
					</div>
                            <?php if(is_array($info['wode']['more']['list']) || $info['wode']['more']['list'] instanceof \think\Collection || $info['wode']['more']['list'] instanceof \think\Paginator): $i = 0; $__LIST__ = $info['wode']['more']['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
					<div class="layui-form-item mt10">
						<label class="layui-form-label">图片：</label>
						<div class="layui-input-inline">
							<input type="text" name="wode[more][list][img][]" placeholder="请输入" value="<?php echo $vo['img']; ?>" class="layui-input">
						</div>
						<div class="layui-form-mid">
							appid：
						</div>
						<div class="layui-input-inline">
							<input type="text" name="wode[more][list][appid][]" placeholder="请输入" value="<?php echo $vo['appid']; ?>" class="layui-input">
						</div>
						<div class="layui-form-mid">名称：</div>
						<div class="layui-input-inline">
							<input type="text" name="wode[more][list][name][]" placeholder="请输入" value="<?php echo $vo['name']; ?>" class="layui-input">
						</div>
						<a class="layui-btn layui-btn-xs" href="javascript:;" onclick="del_more(this)">删除</a>
					</div>
					<hr>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
				</div>
		</div>

		<div class="layui-tab-item">
			<div class="layui-form-item">
				<label class="layui-form-label">其他页广告id</label>
				<label class="layui-form-label">Banner 广告id:</label>
				<div class="layui-input-inline w300">
					<input type="text" name="other[wxAdId][bannerId]" placeholder="" value="<?php echo $info['other']['wxAdId']['bannerId']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">插屏广告id:</label>
				<div class="layui-input-inline w300">
					<input type="text" name="other[wxAdId][cpId]" placeholder="" value="<?php echo $info['other']['wxAdId']['cpId']; ?>" class="layui-input">
				</div>
				<label class="layui-form-label">原生id:</label>
				<div class="layui-input-inline w550">
					<input type="text" name="other[wxAdId][ysId]" placeholder="" value="<?php echo $info['other']['wxAdId']['ysId']; ?>" class="layui-input">
				</div>
			</div>
		</div>
	</div>
	<div class="layui-form-item center">
		<div class="layui-input-block">
			<!--<button type="button" class="layui-btn layui-btn-normal formCheckAll" lay-filter="formCheckAll" >全选</button>-->
			<!--<button type="button" class="layui-btn layui-btn-normal formCheckOther" lay-filter="formCheckOther">反选</button>-->
			<button type="submit" class="layui-btn" lay-submit="" lay-filter="formSubmit" data-child="true">保 存</button>
			<!--<button class="layui-btn layui-btn-warm" type="reset">还 原</button>-->
		</div>
	</div>
</div>
</form>
</div>
<script type="text/javascript" src="/static/js/admin_common.js"></script>
<script type="text/javascript">

    layui.use(['form', 'upload', 'layer'], function () {
        // 操作对象
        var form = layui.form
                , layer = layui.layer
                 , upload = layui.upload
                , $ = layui.jquery;

        // 验证
        form.verify({
            from: function (value) {
                if (value == "") {
                    return "请输入编码";
                }
            },
            show: function (value) {
                if (value == "") {
                    return "请输入名称";
                }
            }
        });

        $('.formCheckAll').click(function(){
            var child = $('.role-list-form').find('input');
            /* 自动选中子节点 */
            child.each(function(index, item) {
                item.checked = true;
            });
            form.render('checkbox');
        });
        $('.formCheckOther').click(function(){
            var child = $('.role-list-form').find('input');
            /* 自动选中子节点 */
            child.each(function(index, item) {
                item.checked = (item.checked  ? false : true);
            });
            form.render('checkbox');
        });
        upload.render({
            elem: '.layui-upload'
            ,url: "<?php echo url('upload/upload'); ?>?flag=vod"
            ,method: 'post'
            ,before: function(input) {
                layer.msg('文件上传中...', {time:3000000});
            },done: function(res, index, upload) {
                var obj = this.item;
                if (res.code == 0) {
                    layer.msg(res.msg);
                    return false;
                }
                layer.closeAll();
                var input = $(obj).parent().parent().find('.upload-input');
                if ($(obj).attr('lay-type') == 'image') {
                    input.siblings('img').attr('src','https://' + window.location.host  + '/' + res.data.file).show();
                }
                input.val('https://' + window.location.host  + '/' + res.data.file);

                if(res.data.thumb_class !=''){
                    $('.'+ res.data.thumb_class).val(res.data.thumb[0].file);
                }
            }
        });
        upload.render({
            elem: '.j-editor-upload'
            , url: "<?php echo url('upload/upload'); ?>?flag=vod_file"
            , method: 'post'
            , exts: 'mp4|mp3|mkv|torrent|zip|txt|rar'
            , before: function (input) {
                layer.msg('文件上传中...', {time: 3000000});
            }, done: function (res, index, upload) {
                var obj = this.item;
                if (res.code == 0) {
                    layer.msg(res.msg);
                    return false;
                }
                layer.closeAll();
                var txt = $(obj).parent().parent().find('textarea').val();
                if (txt != '') {
                    txt += "\r\n";
                }
                $(obj).parent().parent().find('textarea').val(txt + ROOT_PATH + "/" + res.data.file);
            }
        });




        $('.upload-input').hover(function (e){
            var e = window.event || e;
            var imgsrc = $(this).val();
            if(imgsrc.trim()==""){ return; }
            var left = e.clientX+document.body.scrollLeft+20;
            var top = e.clientY+document.body.scrollTop+20;
            $(".showpic").css({left:left,top:top,display:""});
            if(imgsrc.indexOf('://')<0){ imgsrc = ROOT_PATH  + '/' + imgsrc;	} else{ imgsrc = imgsrc.replace('mac:','http:'); }
            $(".showpic_img").attr("src", imgsrc);
        },function (e){
            $(".showpic").css("display","none");
        });
        
        $('.contents').on('click','.j-editor-remove',function(){
            var datai = $(this).parent().parent().attr('data-i');
            $(this).parent().parent().remove();
        });
        
        
        
        $('.contents').on('click','.j-editor-up',function(){
            var current = $(this).parent().parent();
           
            var current_index = current.index();
            var current_i = current.attr('data-i');
            var prev = current.prev();
            var prev_i = prev.attr('data-i');
            if(current_index>0){
                current.insertBefore(prev);
            }
        });
        $('.contents').on('click','.j-editor-down',function(){
            var current = $(this).parent().parent();
            var current_index = current.index();
            var current_i = current.attr('data-i');
            var next = current.next();
            var next_i = next.attr('data-i');

            if(next.length>0){
                current.insertAfter(next);
            }
        });


    });
    
    
   
    
    
    
    function del_indexType(obj)
    {
        
        $(obj).parent().remove(); 
    }
    
    function add_indexType()
    {
        sy_type_len++;
        var html = '<div class="layui-form-item" data-i="'+sy_type_len+'"><label class="layui-form-label">分类ID：</label><div class="layui-input-inline"><input type="text" name="index[sy_type][type_id][]" placeholder="请输入" value="" class="layui-input"></div><div class="layui-form-mid">分类名称：</div><div class="layui-input-inline"><input type="text" name="index[sy_type][type_name][]" placeholder="请输入" value="" class="layui-input"></div><div class="layui-input-inline w400 p10"><a href="javascript:void(0)" class="j-editor-remove">删除</a>&nbsp;<a href="javascript:void(0)" class="j-editor-up">上移</a>&nbsp;<a href="javascript:void(0)" class="j-editor-down">下移</a>&nbsp;</div></div><hr>';
        $('#indexType').append(html);
    }
    
    function del_more(obj)
    {
        
        $(obj).parent().remove(); 
    }
    
    function add_more()
    {
        var html = '<div class="layui-form-item mt10"><label class="layui-form-label">图片：</label><div class="layui-input-inline"><input type="text" name="wode[more][list][img][]" placeholder="请输入" value="" class="layui-input"></div><div class="layui-form-mid">appid：</div><div class="layui-input-inline"><input type="text" name="wode[more][list][appid][]" placeholder="请输入" value="" class="layui-input"></div><div class="layui-form-mid">名称：</div><div class="layui-input-inline"><input type="text" name="wode[more][list][name][]" placeholder="请输入" value="" class="layui-input"></div><a class="layui-btn layui-btn-xs" href="javascript:;" onclick="del_more(this)">删除</a></div><hr>';
        $('#more').append(html);
      
    }
    
    function del_danmuList(obj)
    {
        
        $(obj).parent().remove(); 
    }
    function add_danmuList()
    {
        var html = '<div class="layui-form-item mt10"><label class="layui-form-label">内容：</label><div class="layui-input-inline"><input type="text" name="play[danmuList][text][]" placeholder="请输入内容" value="" class="layui-input"></div><div class="layui-form-mid">颜色：</div><div class="layui-input-inline"><input type="color" name="play[danmuList][color][]" placeholder="请输入颜色" value="" class="layui-input color"></div><div class="layui-form-mid">时间：</div><div class="layui-input-inline"><input type="text" name="play[danmuList][time][]" placeholder="请输入时间" value="" class="layui-input"></div><a class="layui-btn layui-btn-xs" href="javascript:;" onclick="del_danmuList(this)">删除</a></div><hr>';
        $('#danmuList').append(html);
      
    }
    
    function del_vodPlayer(obj)
    {
        
        $(obj).parent().remove(); 
    }
   function add_vodPlayer()
   {
       vodPlayer_len++;
        var html = '<div class="layui-form-item data-i="'+vodPlayer_len+'"><label class="layui-form-label">标识：</label><div class="layui-input-inline"><input type="text" name="play[vodPlayer][id][]" placeholder="请输入标识" value="" class="layui-input"></div><div class="layui-form-mid">名称：</div><div class="layui-input-inline"><input type="text" name="play[vodPlayer][title][]" placeholder="请输入名称" value="" class="layui-input color"></div><div class="layui-input-inline w400 p10"><a href="javascript:void(0)" class="j-editor-remove">删除</a>&nbsp;<a href="javascript:void(0)" class="j-editor-up">上移</a>&nbsp;<a href="javascript:void(0)" class="j-editor-down">下移</a>&nbsp;</div></div><hr>';
        $('#vodPlayer').append(html);
      
    }
</script>

</body>
</html>